<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>侯体宗</title>
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/art.css">
</head>
<body>
    <header>
        <h1>侯体宗的Blog</h1>
        <h4>自己的路,要自己走</h4>
    </header>
    <nav>
        <ul>
            <li><a href="index.php">首页</a></li>
            <li><a href="">导航2</a></li>
            <li><a href="artcomm.php?art_id=75">留言</a></li>
            <li><a href="">导航4</a></li>
        </ul>
    </nav>
    <div id="main">
        <div id="lside">
            <article>
                <h2><a href="#"><?php echo $one['title'];?></a></h2>
                <div class="entry_header">
                    <a href="#"><?php echo $one['author'];?></a>
                    <time><?php echo $one['pubtime'];?></time>                    
                    <a class="catlink" href="#"><?php echo $one['catname'];?></a>
                    <a class="comment" href="#"><?php echo $one['comm'];?></a>
                </div>
                <?php if (isset($one['thumb_img'])){?>
                   <img src="<?php echo $one['thumb_img'];?>" alt="">
                <?php } ?>
                <div class="entry_content">
                    <?php echo $one['content'];?>
                </div>
            </article>
            <div id="comments">
             <?php foreach ($commart as $v) {?>   
            <ol>
                <li>
                    <img src="https://secure.gravatar.com/avatar/582b66ad5ae1b69c7601a990cb9a661a?s=50&d=identicon&r=pg" alt="">
                    <cite><?php echo $v['nick'] ;?></cite>
                    <time>在<?php echo $v['pubtime'] ;?>的时候评论了你</time>
                <span>
                    <font size="1px">当前访问IP:<?php echo $v['ip'] ;?></font>  
                    <a href="">赞</a>(66)&nbsp;&nbsp;&nbsp;
                    <a href="">回复</a>
                </span>  
                </li>

                <article><aside><?php echo $v['comment'] ;?></aside></article>
            </ol>
            <?php }?>   
            </div>
          <div id="respond" class="comment-respond">
            <h3>留下你的评论</h3>
            <form action="#" method="post">
                <p>
                <input placeholder="你的昵称" name="nick" type="text" value="" size="30">
                </p>
                <p>
                <input placeholder="Email" name="email" type="text" value="" size="30">
                </p>
                <p>
                <textarea name="comment" id="comment" cols="45" rows="8" aria-required="true"></textarea>
                <p>
                <input type="submit" value="发表评论">
                </p>
            </form>
         </div>
      </div>

<!--编辑器-->
<script type="text/javascript" src="./lib/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="./lib/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    var ue = UE.getEditor('comment',{
        toolbars: [['fullscreen', 'source', '|', 'undo', 'redo', '|','bold', 'italic', 'underline', 'fontborder','snapscreen','scrawl','insertvideo', 'music', 'attachment', 'map', 'gmap', 'insertframe', 'insertcode', 'pagebreak', 'template', '|',]],initialFrameWidth:700,initialFrameHeight:200});
</script> 

<!--栏目右侧及尾部公共区域-->
<?php include(ROOT.'view/front/catfooter.html'); ?>

</body>
</html>